{
  class Person {
    _age: number;
    /**
     *
     */
    constructor(age: number) {
      this._age = age
    }
    /**
     * 存取器
     */
    set age(age: number) {
      if (age > 0 && age < 120) this._age = age
    }
    get age() {
      return this._age;
    }
  }

  let p1 = new Person(22)
  console.log(p1.age)
  p1.age = 222
  console.log(p1.age)
}

